
export const axios = {
  get: function<T>(url: string): Promise<T> {
    return new Promise(resolve => {
      fetch(url, { method: 'get' })
        .then(res => res.json())
        .then(res => setTimeout(() => {
          resolve(res)
        }, 1000))
    })
  }
}